﻿using Jmit.Deyi.Job;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jmit.Deyi.AutoTask.DataSync
{
	public class JobStart
	{
		public void Start()
		{
			QuartzManage.StartJobWithCron<TestJob1>("TestJob1", "0/5 * * * * ?");//5秒钟一次
			QuartzManage.StartJobWithCron<TestJob2>("TestJob2", "0/8 * * * * ?");//8秒钟一次
			Console.ReadLine();
		}


		public void Close()
		{
			
			QuartzManage.ShutDownJob();

		}
	}
}
